package com.briup.cms.config;

import com.briup.cms.web.interceptor.JwtInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description
 * @Author lining
 * @Date 2021/7/16 17:21
 * @Version 1.0.0
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override// 添加拦截器方法
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new JwtInterceptor()).addPathPatterns("/auth/**");
    }
}